package com.sys.text;

import com.sys.entity.LiveCommerce;
import com.sys.mapper.LiveCommerceMapper;
import com.sys.utils.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class LiveCommerceTest {
    @Test
    public void test11(){
        SqlSession sqlSession = MyBatisUtil.createSqlSession();
        List<LiveCommerce> liveCommerces = sqlSession.getMapper(LiveCommerceMapper.class).selectAll();
        liveCommerces.forEach(liveCommerce -> {
            System.out.println(liveCommerce.getStreamer());
        });
    }
}
